Update deb/RPM packaging scripts: add PHP 8.3–8.5, drop PHP < 7.2#923
Open
Update deb/RPM packaging scripts: add PHP 8.3–8.5, drop PHP < 7.2#923
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add PHP 8.2 compatible release of deb archive
Update deb/RPM packaging scripts: add PHP 8.3–8.5, drop PHP < 7.2
Mar 17, 2026
There was a problem hiding this comment.
Pull request overview
Updates Debian and RPM packaging metadata to reflect the project’s supported PHP versions and improve installability on newer distributions.
Changes:
- Updated Debian
Dependsto drop pre-7.2 explicit packages, usephp-cli, and add MySQL extension alternatives up through PHP 8.5. - Updated RPM
%postoutput message to state PHP 7.2+ instead of PHP 5.4+.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| utils/wp-cli-updatedeb.sh | Refreshes generated DEBIAN/control dependencies to remove obsolete PHP packages and add newer MySQL extension alternatives. |
| utils/wp-cli-rpm.spec | Updates the post-install message to reflect the intended minimum PHP version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| Section: php | ||
| Priority: optional | ||
| Depends: php5-cli (>= 5.6) | php-cli | php7-cli, php5-mysql | php5-mysqlnd | php7.0-mysql | php7.1-mysql | php7.2-mysql | php7.3-mysql | php7.4-mysql | php8.0-mysql | php8.1-mysql | php8.2-mysql | php-mysql, mysql-client | mariadb-client | ||
| Depends: php-cli, php7.2-mysql | php7.3-mysql | php7.4-mysql | php8.0-mysql | php8.1-mysql | php8.2-mysql | php8.3-mysql | php8.4-mysql | php8.5-mysql | php-mysql, mysql-client | mariadb-client |
Comment on lines
11
to
13
| %post | ||
| echo "PHP 5.4 or above must be installed." | ||
| echo "PHP 7.2 or above must be installed." | ||
|
|
Contributor
|
cc @szepeviktor Please double-check the changes. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
.debpackaging script'sDependslist was missing PHP 8.3+ mysql packages and still carried obsolete PHP 5.x/7.0/7.1 dependencies. The RPM spec's minimum version message was similarly stale (PHP 5.4).Changes
utils/wp-cli-updatedeb.sh—dump_control()Dependsline:php5-cli,php7-cli,php5-mysql,php5-mysqlnd,php7.0-mysql,php7.1-mysqlphp8.3-mysql,php8.4-mysql,php8.5-mysqlphp-cli(Debian metapackage)utils/wp-cli-rpm.spec— Updated%postmessage fromPHP 5.4→PHP 7.2to match the actual minimum requirement.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.